import request from '@/utils/request'

// 查询公告详细
export function getAgreement(query) {
  return request({
    url: '/agreement/getDetail',
    method: 'get',
    params: query
  })
}

// 新增公告
export function addAgreement(data) {
  return request({
    url: '/agreement/save',
    method: 'post',
    data: data
  })
}

// 分页列表
export function getAgreementList(query) {
  return request({
    url: '/agreement/selectPage',
    method: 'get',
    params: query
  })
}

export function delAgreement(query) {
  return request({
    url: '/agreement/del',
    method: 'get',
    params: query
  })
}
